<template>
  <div class="child">
    <h1>Child组件</h1>
    <slot :message="msg"><h2>我是默认插槽</h2></slot>
    <slot name="slotOne" :message="msg"><h2>我是slotOne插槽</h2></slot>
  </div>
</template>

<script lang="ts" setup>
  import {ref} from 'vue'

  const msg = ref('我是Child里定义的数据')
</script>

<style scoped>
</style>